<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<div class="page">
	<div class="pageContent">
		<form method="post" action="${ctx }/account/role!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="roleList"/>
			<div class="pageFormContent" layoutH="56">
				<p>
					<label>*角色名：</label>
					<input type="text" id="name" name="name" size="40" value="${name}" class="required" alt="请输入角色名"/>
				</p>
				<p>
					<label>*排序</label>
					<input type="text" id="odr" name="odr" size="40" value="${odr}" class="required" alt="请输入角色名"/>
				</p>
				<p>
					<label>默认页面：</label>
					<input type="text" id="loginPage" name="loginPage" size="40" value="${loginPage}" alt="请输入默认页面" />
				</p>
				<div></div>
				<p style="width:80%">
					<label>授权：</label>
					<s:checkboxlist name="checkedAuthIds" list="allAuthorityList" listKey="id"	listValue="name" theme="custom" />
				</p>
			</div>
			<div class="formBar">
				<ul>
				<security:authorize ifAnyGranted="ROLE_角色管理"></security:authorize>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>